package com.ge.modules.api.service.impl;

import com.ge.modules.api.service.TbCollectService;
import com.ge.modules.dao.TbCollectDao;
import com.ge.modules.entity.TbCollectEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TbCollectServiceImpl implements TbCollectService {
    @Autowired
    private TbCollectDao collectDao;

    @Override
    public TbCollectEntity queryObject(Integer id) {
        return collectDao.queryObject(id);
    }

    @Override
    public TbCollectEntity queryByObject(TbCollectEntity collect) {
        return collectDao.queryByObject(collect);
    }

    @Override
    public List<TbCollectEntity> queryList(Map<String, Object> map) {
        return collectDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return collectDao.queryTotal(map);
    }

    @Override
    public void save(TbCollectEntity collect) {
        collectDao.save(collect);
    }

    @Override
    public void update(TbCollectEntity collect) {
        collectDao.update(collect);
    }

    @Override
    public void delete(Integer id) {
        collectDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids) {
        collectDao.deleteBatch(ids);
    }

}
